{%extends file="user/page/layout.tpl"%}


{%block name="sub-head-static"%}
    {%require name="user:static/bankcard/bankcard.less"%}
    {%require name="user:static/bankcard/bankcard.js"%}
{%/block%}


{%block name="right-content"%}
    <div class="page-bankcard">
        <div class="block">
            <div class="title">银行卡管理</div>
            <div class="bank-container">
                <ul class="my-banks">
                    {%foreach $my_banks as $bank%}
                       {%if !$bank.is_delete%}
                            <li class="bank-block">
                                <div class='bank-type'>{%$bank.bank_type|bank_map%}</div>
                                <div class="bank-number">{%$bank.bankcard_number%}</div>
                                <a class='button btn-del' data-id="{%$bank.id%}" title="删除"></a>
                            </li>
                        {%/if%}
                    {%/foreach%}
                    <div class="clear"></div>
                </ul>

                <div class="bank-block add-bank">
                    <div class="bank-list">
                        <div class="self">请选择银行</div>
                        <div class="drop-menu"class="drop-menu">
                            <ul>
                                {%foreach $bank_list as $type=>$bank%}
                                    <li data-type="{%$type%}" data-name="{%$bank%}">{%$bank%}</li>
                                {%/foreach%}
                            </ul>
                        </div>

                    </div>
                    <input type="text" placeholder="请输入银行卡号" class="bank-number">
                    <a class="button btn-add"></a>
                </div>
            </div>
        </div>

    </div>
{%/block%}


